package com.brayan.webapp.model.general.i18n;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import com.brayan.webapp.model.RootEntity;

/**
 * Entity implementation class for Entity: Language
 * 
 */
@Entity
public class Language extends RootEntity {

	private static final long serialVersionUID = -285407977564880369L;

	@Id
	@Column(length=2)
	private String languageCode;

	/**
	 * E.g. Danish --> Dansk
	 */
	@Column
	private String nativeLanguageName;

	public String getNativeLanguageName() {
		return nativeLanguageName;
	}

	public void setNativeLanguageName(String nativeLanguageName) {
		this.nativeLanguageName = nativeLanguageName;
	}

	public String getLanguageCode() {
		return languageCode;
	}
	
	public String setLanguageCode(String languageCode) {
		this.languageCode = languageCode; 		
		return languageCode;
	}

}
